home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / mandrake_MDKSA-2002-039.nasl < prev    next >
Text File  |  2005-01-14  |  9KB  |  325 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2002:039-2
  5. #
  6.  
  7.  
  8. if ( ! defined_func("bn_random") ) exit(0);
  9. if(description)
  10. {
  11.  script_id(14778);
  12.  script_version ("$Revision: 1.1 $");
  13.  script_cve_id("CAN-2002-0392");
  14.  
  15.  name["english"] = "MDKSA-2002:039-2: apache";
  16.  
  17.  script_name(english:name["english"]);
  18.  
  19.  desc["english"] = "
  20. The remote host is missing the patch for the advisory MDKSA-2002:039-2 (apache).
  21.  
  22.  
  23. [ Please note that this advisory supersedes the previous MDKSA-2002:039 and
  24. MDKSA-2002:039-1 advisories. ]
  25. MandrakeSoft is urging all users of Mandrake Linux to update their Apache
  26. installations immediately. What was previously thought to have been a DoS-only
  27. condition has now been proven to be more than that; exploitable conditions have
  28. been discovered on both 32bit and 64bit platforms. Successful exploitation of
  29. this vulnerability may lead to the execution of arbitary code on the server
  30. running a vulnerable Apache with the permissions of the web server child process
  31. (on Mandrake Linux this is the user 'apache'). This can be used to exploit other
  32. vulnerabilities that are unrelated to Apache on the local system, and
  33. potentially allow the intruder root access.
  34. Thanks to Gobbles for proving that this exploitable condition exists. Because
  35. there are known exploits in the wild for some platforms, this update should be
  36. considered essential and should be performed immediately.
  37. All versions of Apache prior to 1.3.26 and 2.0.37 are vulnerable to this
  38. problem. MandrakeSoft has provided patched versions of Apache to correct this
  39. vulnerability.
  40. Also please note that these packages are no different than those provided in
  41. MDKSA-2002:039-1 so if you have already updated, there are no new packages to
  42. upgrade.
  43.  
  44.  
  45. Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2002:039-2
  46. Risk factor : High";
  47.  
  48.  
  49.  
  50.  script_description(english:desc["english"]);
  51.  
  52.  summary["english"] = "Check for the version of the apache package";
  53.  script_summary(english:summary["english"]);
  54.  
  55.  script_category(ACT_GATHER_INFO);
  56.  
  57.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  58.  family["english"] = "Mandrake Local Security Checks";
  59.  script_family(english:family["english"]);
  60.  
  61.  script_dependencies("ssh_get_info.nasl");
  62.  script_require_keys("Host/Mandrake/rpm-list");
  63.  exit(0);
  64. }
  65.  
  66. include("rpm.inc");
  67. if ( rpm_check( reference:"apache-1.3.22-10.1mdk", release:"MDK7.1", yank:"mdk") )
  68. {
  69.  security_hole(0);
  70.  exit(0);
  71. }
  72. if ( rpm_check( reference:"apache-common-1.3.22-10.1mdk", release:"MDK7.1", yank:"mdk") )
  73. {
  74.  security_hole(0);
  75.  exit(0);
  76. }
  77. if ( rpm_check( reference:"apache-devel-1.3.22-10.1mdk", release:"MDK7.1", yank:"mdk") )
  78. {
  79.  security_hole(0);
  80.  exit(0);
  81. }
  82. if ( rpm_check( reference:"apache-manual-1.3.22-10.1mdk", release:"MDK7.1", yank:"mdk") )
  83. {
  84.  security_hole(0);
  85.  exit(0);
  86. }
  87. if ( rpm_check( reference:"apache-mod_perl-1.3.22_1.26-2.1mdk", release:"MDK7.1", yank:"mdk") )
  88. {
  89.  security_hole(0);
  90.  exit(0);
  91. }
  92. if ( rpm_check( reference:"apache-modules-1.3.22-10.1mdk", release:"MDK7.1", yank:"mdk") )
  93. {
  94.  security_hole(0);
  95.  exit(0);
  96. }
  97. if ( rpm_check( reference:"apache-source-1.3.22-10.1mdk", release:"MDK7.1", yank:"mdk") )
  98. {
  99.  security_hole(0);
  100.  exit(0);
  101. }
  102. if ( rpm_check( reference:"mod_perl-common-1.3.22_1.26-2.1mdk", release:"MDK7.1", yank:"mdk") )
  103. {
  104.  security_hole(0);
  105.  exit(0);
  106. }
  107. if ( rpm_check( reference:"mod_perl-devel-1.3.22_1.26-2.1mdk", release:"MDK7.1", yank:"mdk") )
  108. {
  109.  security_hole(0);
  110.  exit(0);
  111. }
  112. if ( rpm_check( reference:"HTML-Embperl-1.3.22_1.3.4-2.1mdk", release:"MDK7.1", yank:"mdk") )
  113. {
  114.  security_hole(0);
  115.  exit(0);
  116. }
  117. if ( rpm_check( reference:"apache-1.3.22-10.1mdk", release:"MDK7.2", yank:"mdk") )
  118. {
  119.  security_hole(0);
  120.  exit(0);
  121. }
  122. if ( rpm_check( reference:"apache-common-1.3.22-10.1mdk", release:"MDK7.2", yank:"mdk") )
  123. {
  124.  security_hole(0);
  125.  exit(0);
  126. }
  127. if ( rpm_check( reference:"apache-devel-1.3.22-10.1mdk", release:"MDK7.2", yank:"mdk") )
  128. {
  129.  security_hole(0);
  130.  exit(0);
  131. }
  132. if ( rpm_check( reference:"apache-manual-1.3.22-10.1mdk", release:"MDK7.2", yank:"mdk") )
  133. {
  134.  security_hole(0);
  135.  exit(0);
  136. }
  137. if ( rpm_check( reference:"apache-mod_perl-1.3.22_1.26-2.1mdk", release:"MDK7.2", yank:"mdk") )
  138. {
  139.  security_hole(0);
  140.  exit(0);
  141. }
  142. if ( rpm_check( reference:"apache-modules-1.3.22-10.1mdk", release:"MDK7.2", yank:"mdk") )
  143. {
  144.  security_hole(0);
  145.  exit(0);
  146. }
  147. if ( rpm_check( reference:"apache-source-1.3.22-10.1mdk", release:"MDK7.2", yank:"mdk") )
  148. {
  149.  security_hole(0);
  150.  exit(0);
  151. }
  152. if ( rpm_check( reference:"mod_perl-common-1.3.22_1.26-2.1mdk", release:"MDK7.2", yank:"mdk") )
  153. {
  154.  security_hole(0);
  155.  exit(0);
  156. }
  157. if ( rpm_check( reference:"mod_perl-devel-1.3.22_1.26-2.1mdk", release:"MDK7.2", yank:"mdk") )
  158. {
  159.  security_hole(0);
  160.  exit(0);
  161. }
  162. if ( rpm_check( reference:"HTML-Embperl-1.3.22_1.3.4-2.1mdk", release:"MDK7.2", yank:"mdk") )
  163. {
  164.  security_hole(0);
  165.  exit(0);
  166. }
  167. if ( rpm_check( reference:"apache-1.3.22-10.1mdk", release:"MDK8.0", yank:"mdk") )
  168. {
  169.  security_hole(0);
  170.  exit(0);
  171. }
  172. if ( rpm_check( reference:"apache-common-1.3.22-10.1mdk", release:"MDK8.0", yank:"mdk") )
  173. {
  174.  security_hole(0);
  175.  exit(0);
  176. }
  177. if ( rpm_check( reference:"apache-devel-1.3.22-10.1mdk", release:"MDK8.0", yank:"mdk") )
  178. {
  179.  security_hole(0);
  180.  exit(0);
  181. }
  182. if ( rpm_check( reference:"apache-manual-1.3.22-10.1mdk", release:"MDK8.0", yank:"mdk") )
  183. {
  184.  security_hole(0);
  185.  exit(0);
  186. }
  187. if ( rpm_check( reference:"apache-mod_perl-1.3.22_1.26-2.1mdk", release:"MDK8.0", yank:"mdk") )
  188. {
  189.  security_hole(0);
  190.  exit(0);
  191. }
  192. if ( rpm_check( reference:"apache-modules-1.3.22-10.1mdk", release:"MDK8.0", yank:"mdk") )
  193. {
  194.  security_hole(0);
  195.  exit(0);
  196. }
  197. if ( rpm_check( reference:"apache-source-1.3.22-10.1mdk", release:"MDK8.0", yank:"mdk") )
  198. {
  199.  security_hole(0);
  200.  exit(0);
  201. }
  202. if ( rpm_check( reference:"mod_perl-common-1.3.22_1.26-2.1mdk", release:"MDK8.0", yank:"mdk") )
  203. {
  204.  security_hole(0);
  205.  exit(0);
  206. }
  207. if ( rpm_check( reference:"mod_perl-devel-1.3.22_1.26-2.1mdk", release:"MDK8.0", yank:"mdk") )
  208. {
  209.  security_hole(0);
  210.  exit(0);
  211. }
  212. if ( rpm_check( reference:"HTML-Embperl-1.3.22_1.3.4-2.1mdk", release:"MDK8.0", yank:"mdk") )
  213. {
  214.  security_hole(0);
  215.  exit(0);
  216. }
  217. if ( rpm_check( reference:"apache-1.3.22-10.1mdk", release:"MDK8.1", yank:"mdk") )
  218. {
  219.  security_hole(0);
  220.  exit(0);
  221. }
  222. if ( rpm_check( reference:"apache-common-1.3.22-10.1mdk", release:"MDK8.1", yank:"mdk") )
  223. {
  224.  security_hole(0);
  225.  exit(0);
  226. }
  227. if ( rpm_check( reference:"apache-devel-1.3.22-10.1mdk", release:"MDK8.1", yank:"mdk") )
  228. {
  229.  security_hole(0);
  230.  exit(0);
  231. }
  232. if ( rpm_check( reference:"apache-manual-1.3.22-10.1mdk", release:"MDK8.1", yank:"mdk") )
  233. {
  234.  security_hole(0);
  235.  exit(0);
  236. }
  237. if ( rpm_check( reference:"apache-mod_perl-1.3.22_1.26-4.1mdk", release:"MDK8.1", yank:"mdk") )
  238. {
  239.  security_hole(0);
  240.  exit(0);
  241. }
  242. if ( rpm_check( reference:"apache-modules-1.3.22-10.1mdk", release:"MDK8.1", yank:"mdk") )
  243. {
  244.  security_hole(0);
  245.  exit(0);
  246. }
  247. if ( rpm_check( reference:"apache-source-1.3.22-10.1mdk", release:"MDK8.1", yank:"mdk") )
  248. {
  249.  security_hole(0);
  250.  exit(0);
  251. }
  252. if ( rpm_check( reference:"mod_perl-common-1.3.22_1.26-4.1mdk", release:"MDK8.1", yank:"mdk") )
  253. {
  254.  security_hole(0);
  255.  exit(0);
  256. }
  257. if ( rpm_check( reference:"mod_perl-devel-1.3.22_1.26-4.1mdk", release:"MDK8.1", yank:"mdk") )
  258. {
  259.  security_hole(0);
  260.  exit(0);
  261. }
  262. if ( rpm_check( reference:"HTML-Embperl-1.3.22_1.3.4-4.1mdk", release:"MDK8.1", yank:"mdk") )
  263. {
  264.  security_hole(0);
  265.  exit(0);
  266. }
  267. if ( rpm_check( reference:"apache-1.3.23-4.1mdk", release:"MDK8.2", yank:"mdk") )
  268. {
  269.  security_hole(0);
  270.  exit(0);
  271. }
  272. if ( rpm_check( reference:"apache-common-1.3.23-4.1mdk", release:"MDK8.2", yank:"mdk") )
  273. {
  274.  security_hole(0);
  275.  exit(0);
  276. }
  277. if ( rpm_check( reference:"apache-devel-1.3.23-4.1mdk", release:"MDK8.2", yank:"mdk") )
  278. {
  279.  security_hole(0);
  280.  exit(0);
  281. }
  282. if ( rpm_check( reference:"apache-manual-1.3.23-4.1mdk", release:"MDK8.2", yank:"mdk") )
  283. {
  284.  security_hole(0);
  285.  exit(0);
  286. }
  287. if ( rpm_check( reference:"apache-mod_perl-1.3.23_1.26-5.1mdk", release:"MDK8.2", yank:"mdk") )
  288. {
  289.  security_hole(0);
  290.  exit(0);
  291. }
  292. if ( rpm_check( reference:"apache-modules-1.3.23-4.1mdk", release:"MDK8.2", yank:"mdk") )
  293. {
  294.  security_hole(0);
  295.  exit(0);
  296. }
  297. if ( rpm_check( reference:"apache-source-1.3.23-4.1mdk", release:"MDK8.2", yank:"mdk") )
  298. {
  299.  security_hole(0);
  300.  exit(0);
  301. }
  302. if ( rpm_check( reference:"mod_perl-common-1.3.23_1.26-5.1mdk", release:"MDK8.2", yank:"mdk") )
  303. {
  304.  security_hole(0);
  305.  exit(0);
  306. }
  307. if ( rpm_check( reference:"mod_perl-devel-1.3.23_1.26-5.1mdk", release:"MDK8.2", yank:"mdk") )
  308. {
  309.  security_hole(0);
  310.  exit(0);
  311. }
  312. if ( rpm_check( reference:"HTML-Embperl-1.3.23_1.3.4-5.1mdk", release:"MDK8.2", yank:"mdk") )
  313. {
  314.  security_hole(0);
  315.  exit(0);
  316. }
  317. if (rpm_exists(rpm:"apache-", release:"MDK7.1")
  318.  || rpm_exists(rpm:"apache-", release:"MDK7.2")
  319.  || rpm_exists(rpm:"apache-", release:"MDK8.0")
  320.  || rpm_exists(rpm:"apache-", release:"MDK8.1")
  321.  || rpm_exists(rpm:"apache-", release:"MDK8.2") )
  322. {
  323.  set_kb_item(name:"CAN-2002-0392", value:TRUE);
  324. }
  325.